package com.ssps.front.tenant2.service2;

import com.ssps.entity.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author: peng
 */
public interface Tenant2Service {

    Map<String, Object> selectRentParkingInfo(String example) throws Exception;

    String Sendsms(String phone);

    void update(User user);

    Orders selectOrders(Integer rid);

    Map<String,Object> confirmInfo(Integer oid, UserInfo userInfo);

    /**
     * 抢租客抢车位并支付
     * @param order
     * @param uuid
     */
    Integer updateGetParking(Orders order, Integer uuid);

    /**
     * 抢租客充值
     * @return
     */
    String top_up(HttpServletRequest req,  HttpServletResponse resp,Map<String,Object> paramMap) throws IOException;

    void updateUserInfoBalance(Integer uuid,String total_amount);

    /**
     * 车位评论信息
     */
    List<Comment> lookComments(Integer pid);
}
